﻿<%@ Page Title="" Language="C#" MasterPageFile="~/RS.Master" AutoEventWireup="true"
    CodeBehind="AddContent.aspx.cs" Inherits="RealState.W.AddContent" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<script src="js/autoNumeric.js" type="text/javascript"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<script type="text/javascript">
    jQuery(function($) {
      $('.price').autoNumeric('init');
      
      $('.price').bind('blur focusout keypress keyup', function () {
        var demoGet = $('.price').autoNumeric('get');
         $('#<%=HiddenField1.ClientID %>').val(demoGet);
    });
    
   });
</script>


    <asp:HiddenField ID="HiddenField1" runat="server" />
 <div class="breadcrumb clearfix">
    <span>Đăng tin:&nbsp;&nbsp;</span><span>&nbsp;&nbsp;&nbsp;&nbsp;<asp:Label ID="lblCateName"
        runat="server" ></asp:Label></span>
</div>
<div class="container-fluid" id="divSelect" runat="server" visible="false">
        <div class="content">
        <div class="row-fluid">
                <div class="box1">
                    <div class="box-head">
                        <h3>
                            Lựa chọn danh mục đăng tin</h3>
                    </div>
                    <div class="box-content">
                        <div class="form-horizontal">
                            <fieldset>
                                <div class="control-group">
                                    <label for="basic" class="control-label">
                                        Danh mục</label>
                                    <div class="controls">
                                        <asp:DropDownList ID="drdCategories" runat="server">
                                        </asp:DropDownList>
                                    </div>
                                </div>
                                
                                <div id="navigation">
									<div class="form-actions">
									</div>
									<asp:Button ID="Button2" runat="server" Text="Tiếp tục" OnClick="Button2_Click" CssClass="small-button-a" />
									</div>
                            </fieldset>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        </div>
        

    <div class="container-fluid" id="divFormInput" runat="server" visible="false">
        <div class="content">
            <div class="row-fluid">
                <div class="box1">
                    <div class="box-head">
                        <h3>
                            Thông tin người đăng tin</h3>
                    </div>
                    <div class="box-content">
                        <div class="form-horizontal">
                            <fieldset>
                                <div class="control-group">
                                    <label for="basic" class="control-label">
                                        Họ tên</label>
                                    <div class="controls">
                                        <asp:TextBox ID="txtName" runat="server"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" SetFocusOnError="true" ControlToValidate="txtName" ErrorMessage="(*) Họ tên không được để trống"></asp:RequiredFieldValidator>
                                    </div>
                                </div>
                                <div class="control-group">
                                    <label for="basic" class="control-label">
                                        Nơi công tác</label>
                                    <div class="controls">
                                        <asp:TextBox ID="txtWorkPlace" runat="server" CssClass="span10"></asp:TextBox>
                                    </div>
                                </div>
                                <div class="control-group">
                                    <label for="basic" class="control-label">
                                        Chức vụ</label>
                                    <div class="controls">
                                        <asp:TextBox ID="txtPosition" runat="server"></asp:TextBox>
                                    </div>
                                </div>
                                <div class="control-group">
                                    <label for="basic" class="control-label">
                                        Mobile</label>
                                    <div class="controls">
                                        <asp:TextBox ID="txtMobile" runat="server"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" SetFocusOnError="true" ControlToValidate="txtMobile" ErrorMessage="(*) Số điện thoại không được để trống"></asp:RequiredFieldValidator>
                                    </div>
                                </div>
                                <div class="control-group">
                                    <label for="basic" class="control-label">
                                        Email</label>
                                    <div class="controls">
                                        <asp:TextBox ID="txtEmail" runat="server"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" SetFocusOnError="true" ControlToValidate="txtEmail" ErrorMessage="(*) Email không được để trống"></asp:RequiredFieldValidator>
                                    </div>
                                </div>
                                <div class="control-group">
                                    <label for="basic" class="control-label">
                                        Địa chỉ</label>
                                    <div class="controls">
                                        <asp:TextBox ID="txtAddressUser" runat="server" CssClass="span10"></asp:TextBox>
                                    </div>
                                </div>
                            </fieldset>
                        </div>
                    </div>
                </div>
            </div>
            <div class="row-fluid">
                <div class="box1">
                    <div class="box-head">
                        <h3>
                            Nội dung tin đăng</h3>
                    </div>
                    <div class="box-content">
                        <div class="form-horizontal">
                            <fieldset>
                                <div class="control-group">
                                    <label for="basic" class="control-label">
                                        Tiêu đề tin</label>
                                    <div class="controls">
                                        <asp:TextBox ID="txtTitle" runat="server" CssClass="span10" 
                                            TextMode="MultiLine"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" SetFocusOnError="true" ControlToValidate="txtTitle" ErrorMessage="(*) Tiêu đề tin không được để trống"></asp:RequiredFieldValidator>
                                    </div>
                                </div>
                                <div class="control-group">
                                    <label for="basic" class="control-label">
                                        Nội dung</label>
                                    <div class="controls">
                                        <asp:TextBox ID="txtContent" runat="server" CssClass="span10" Height="200px" 
                                            TextMode="MultiLine"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" SetFocusOnError="true" ControlToValidate="txtContent" ErrorMessage="(*) Nội dung tin không được để trống"></asp:RequiredFieldValidator>
                                    </div>
                                </div>
                                <div class="control-group">
                                    <label for="basic" class="control-label">
                                        Hình ảnh</label>
                                    <div class="controls">
                                        <asp:FileUpload ID="FileUploadImage" runat="server" />
                                    </div>
                                </div>
                                <div class="control-group">
                                    <label for="basic" class="control-label">
                                        Thời gian bán</label>
                                    <div class="controls">
                                        <asp:DropDownList ID="drdDuration" runat="server">
                                            <asp:ListItem Value="0" Selected="True">Chọn thời gian đăng bán</asp:ListItem>
                                            <asp:ListItem Value="1">15 ngày</asp:ListItem>
                                            <asp:ListItem Value="2">30 ngày</asp:ListItem>
                                            <asp:ListItem Value="3">60 ngày</asp:ListItem>
                                            <asp:ListItem Value="4">90 ngày</asp:ListItem>
                                            <asp:ListItem Value="5">120 ngày</asp:ListItem>
                                            <asp:ListItem Value="6">180 ngày</asp:ListItem>
                                        </asp:DropDownList>
                                    </div>
                                </div>
                                <div class="control-group">
                                    <label for="basic" class="control-label">
                                        Nhóm ngành tìm kiếm</label>
                                    <div class="controls">
                                        <asp:DropDownList ID="drdTradeType" runat="server">
                                        </asp:DropDownList>
                                    </div>
                                </div>
                                <div class="control-group" id="divContentType" runat="server">
                                    <label for="basic" class="control-label">
                                        Loại hình mua</label>
                                    <div class="controls">
                                        <asp:DropDownList ID="drdContentType" runat="server">
                                        </asp:DropDownList>
                                    </div>
                                </div>
                                <div class="control-group">
                                    <label for="basic" class="control-label">
                                        Thành phố</label>
                                    <div class="controls">
                                        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                                            <ContentTemplate>
                                                <asp:DropDownList ID="drdCity" runat="server" AutoPostBack="True" OnSelectedIndexChanged="drdCity_SelectedIndexChanged">
                                                </asp:DropDownList>
                                            </ContentTemplate>
                                        </asp:UpdatePanel>
                                    </div>
                                </div>
                                <div class="control-group">
                                    <label for="basic" class="control-label">
                                        Quận huyện</label>
                                    <div class="controls">
                                        <asp:UpdatePanel ID="UpdatePanel2" runat="server">
                                            <ContentTemplate>
                                                <asp:DropDownList ID="drdDistrict" runat="server">
                                                </asp:DropDownList>
                                            </ContentTemplate>
                                        </asp:UpdatePanel>
                                    </div>
                                </div>
                            </fieldset>
                        </div>
                    </div>
                </div>
            </div>
            <div class="row-fluid" id="divCompany" runat="server">
                <div class="box1">
                    <div class="box-head">
                        <h3>
                            Thông tin chung về doanh nghiệp</h3>
                    </div>
                    <div class="box-content">
                        <div class="form-horizontal">
                            <fieldset>
                                <div class="control-group">
                                    <label for="basic" class="control-label">
                                        Tên công ty</label>
                                    <div class="controls">
                                        <asp:TextBox ID="txtCompanyName" runat="server" CssClass="span10"></asp:TextBox>
                                    </div>
                                </div>
                                <div class="control-group">
                                    <label for="basic" class="control-label">
                                        Đại chỉ</label>
                                    <div class="controls">
                                        <asp:TextBox ID="txtCompanyAddress" runat="server" CssClass="span10"></asp:TextBox>
                                    </div>
                                </div>
                                <div class="control-group">
                                    <label for="basic" class="control-label">
                                        Số điện thoại</label>
                                    <div class="controls">
                                        <asp:TextBox ID="txtCompanyTel" runat="server"></asp:TextBox>Fax<asp:TextBox ID="txtCompanyFax"
                                            runat="server"></asp:TextBox>
                                    </div>
                                </div>
                                <div class="control-group">
                                    <label for="basic" class="control-label">
                                        Email</label>
                                    <div class="controls">
                                        <asp:TextBox ID="txtCompanyEmail" runat="server"></asp:TextBox>Website<asp:TextBox
                                            ID="txtWebsite" runat="server"></asp:TextBox>
                                    </div>
                                </div>
                                <div class="control-group">
                                    <label for="basic" class="control-label">
                                        Chủ doanh nghiệp/ Người đại diện</label>
                                    <div class="controls">
                                        <asp:TextBox ID="txtOwner" runat="server" CssClass="span10"></asp:TextBox>
                                    </div>
                                </div>
                                <div class="control-group">
                                    <label for="basic" class="control-label">
                                        Mã số thuế
                                    </label>
                                    <div class="controls">
                                        <asp:TextBox ID="txtTaxCode" runat="server"></asp:TextBox>Thời điểm bắt đầu hoạt
                                        động<asp:TextBox ID="txtStartTime" runat="server"></asp:TextBox>
                                    </div>
                                </div>
                                <div class="control-group">
                                    <label for="basic" class="control-label">
                                        Giới thiệu về doanh nghiệp</label>
                                    <div class="controls">
                                        <asp:TextBox ID="txtDescription" runat="server" CssClass="span10 input-square" Height="100px"></asp:TextBox>
                                    </div>
                                </div>
                            </fieldset>
                        </div>
                    </div>
                </div>
            </div>
            <div class="row-fluid" id="divCompany2" runat="server">
                <div class="box1">
                    <div class="box-head">
                        <h3>
                            Tình hình kinh doanh của doanh nghiệp </h3>
                    </div>
                    <div class="box-content">
                        <div class="form-horizontal">
                            <fieldset>
                                <div class="control-group">
                                    <label for="basic" class="control-label">
                                        Hiện trạng doanh nghiệp</label>
                                    <div class="controls">
                                        <asp:DropDownList ID="drdStatus" runat="server">
                                            <asp:ListItem Value="0">Ngừng hoạt động</asp:ListItem>
                                            <asp:ListItem Value="1" Selected="True">Đang hoạt động</asp:ListItem>
                                        </asp:DropDownList>
                                    </div>
                                </div>
                                <div class="control-group">
                                    <label for="basic" class="control-label">
                                        Doanh thu hàng năm</label>
                                    <div class="controls">
                                        <asp:TextBox ID="txtRevenue" runat="server"></asp:TextBox>
                                    </div>
                                </div>
                                <div class="control-group">
                                    <label for="basic" class="control-label">
                                        Doanh thu năm gần nhất</label>
                                    <div class="controls">
                                        <asp:TextBox ID="txtLastRevenue" runat="server"></asp:TextBox>
                                    </div>
                                </div>
                                <div class="control-group">
                                    <label for="basic" class="control-label">
                                        Lợi nhuận hàng năm</label>
                                    <div class="controls">
                                        <asp:TextBox ID="txtAnnualProfit" runat="server"></asp:TextBox>
                                    </div>
                                </div>
                                <div class="control-group">
                                    <label for="basic" class="control-label">
                                        Lợi nhuận năm gần nhất</label>
                                    <div class="controls">
                                        <asp:TextBox ID="txtLastAnnualProfit" runat="server"></asp:TextBox>
                                    </div>
                                </div>
                                <div class="control-group">
                                    <label for="basic" class="control-label">
                                        Giá trị tài sản của doanh nghiệp</label>
                                    <div class="controls">
                                        <asp:TextBox ID="txtAsset" runat="server"></asp:TextBox>
                                    </div>
                                </div>
                                <div class="control-group" id="divSaleType" runat="server">
                                    <label for="basic" class="control-label">
                                        Bán cả hay bán 1 phần</label>
                                    <div class="controls">
                                        <asp:DropDownList ID="drdSaleType" runat="server">
                                            <asp:ListItem Value="0">Bán cả</asp:ListItem>
                                            <asp:ListItem Value="1" Selected="True">Bán 1 phần</asp:ListItem>
                                        </asp:DropDownList>
                                    </div>
                                </div>
                                <div class="control-group">
                                    <label for="basic" class="control-label">
                                        Lý do </label>
                                    <div class="controls">
                                        <asp:TextBox ID="txtReason" runat="server" CssClass="span10 input-square" Height="100px"></asp:TextBox>
                                    </div>
                                </div>
                            </fieldset>
                        </div>
                    </div>
                </div>
            </div>
            <div class="row-fluid" id="divProject" runat="server">
                <div class="box1">
                    <div class="box-head">
                        <h3>
                            Thông tin dự án</h3>
                    </div>
                    <div class="box-content">
                        <div class="form-horizontal">
                            <fieldset>
                                <div class="control-group">
                                    <label for="basic" class="control-label">
                                        Tên dự án</label>
                                    <div class="controls">
                                        <asp:TextBox ID="txtProjectTitle" runat="server" CssClass="span10"></asp:TextBox>
                                    </div>
                                </div>
                                <div class="control-group">
                                    <label for="basic" class="control-label">
                                        Chủ đầu tư</label>
                                    <div class="controls">
                                        <asp:TextBox ID="txtInvestor" runat="server" CssClass="span10"></asp:TextBox>
                                    </div>
                                </div>
                                <div class="control-group">
                                    <label for="basic" class="control-label">
                                        Địa điểm</label>
                                    <div class="controls">
                                        <asp:TextBox ID="txtLocaltion" runat="server" CssClass="span10"></asp:TextBox>
                                    </div>
                                </div>
                                <div class="control-group">
                                    <label for="basic" class="control-label">
                                        Giới thiệu tóm tắt về dự án</label>
                                    <div class="controls">
                                        <asp:TextBox ID="txtNote" runat="server" CssClass="span10 input-square" Height="100px"></asp:TextBox>
                                    </div>
                                </div>
                            </fieldset>
                        </div>
                    </div>
                </div>
            </div>
            <div class="row-fluid" id="divPrice" runat="server">
                <div class="box1">
                    <div class="box-head">
                        <h3>
                            Giá </h3>
                    </div>
                    <div class="box-content">
                        <div class="form-horizontal">
                            <fieldset>
                                <div class="control-group" id="divAuction" runat="server">
                                    <label for="basic" class="control-label">
                                        Bạn chọn hình thức đấu giá không</label>
                                    <div class="controls">
                                        <asp:CheckBox ID="ckbAuction" runat="server" Text="Có" />
                                    </div>
                                </div>
                                <div class="control-group">
                                    <label for="basic" class="control-label">
                                        Số tiền mong muốn</label>
                                    <div class="controls">
                                        <asp:TextBox ID="txtPrice" CssClass="price" runat="server"></asp:TextBox>
                                        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtPrice" ErrorMessage="(*) Số tiền phải là số" ValidationExpression="^\d$"></asp:RegularExpressionValidator>
                                    </div>
                                </div>
                                <div class="control-group">
                                    <label for="basic" class="control-label">
                                        Cách thức giao dịch</label>
                                    <div class="controls">
                                        <asp:RadioButton ID="rdoTransType1" runat="server" Text="Liên hệ qua Mua bán dự án"
                                            GroupName="rdoTransType" />
                                        &nbsp;&nbsp;&nbsp;<asp:RadioButton ID="rdoTransType2" runat="server" Text="Liên hệ trực tiếp"
                                            GroupName="rdoTransType" />
                                    </div>
                                </div>
                            </fieldset>
                        </div>
                    </div>
                </div>
            </div>
            <asp:Button ID="Button1" runat="server" Text="Đăng tin" OnClick="Button1_Click" CssClass="small-button-a" />
        </div>
    </div>
</asp:Content>
